package com.netease.nie.dao;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Repository;

import com.netease.nie.mapper.CreditHistoryMapper;
import com.netease.nie.model.CreditHistory;

@Repository
public class CreditHistoryDao {

	@Resource
	private CreditHistoryMapper creditHistoryMapper;
	
	public int insertCreditHistory(CreditHistory creditHistory) throws Exception {
		return creditHistoryMapper.insertCreditHistory(creditHistory);
	}
	
	public List<CreditHistory> queryCreditHistoryByUserId(long userId, int minGenerateDate) {
		return creditHistoryMapper.queryCreditHistoryByUserId(userId, minGenerateDate);
	}
}